// 调整关闭按钮样式
.el-drawer__close-btn,
.el-dialog__headerbtn {
  padding: 0;

  .el-icon {
    transition: all 0.3s;
  }

  &:hover .el-icon {
    transform: rotate(270deg);
  }

  &:focus {
    outline: none;
  }
}

// 对第一层级的tabs
.first-tabs {
  // 调整 tabs 样式
  .el-tabs__item {
    transition: all 0.5s;
    font-size: 20px;
    height: 50px;
  }
  // 调整tabs底部间距
  .el-tabs__header {
    margin-bottom: 10px;
  }
  // 消除底部分割线
  .el-tabs__nav-scroll {
    padding-bottom: 0;
  }
  // 调整active时的线段
  .el-tabs__active-bar {
    background-color: $green;
  }
  .el-tabs__item.is-active,
  .el-tabs__item:not(.is-disabled):hover {
    color: $green;
    font-weight: 700;
  }
}
// 对第二层级的tabs
.second-tabs {
  .el-tabs__item {
    transition: all 0.5s;
    font-size: 18px;
    height: 40px;
  }
  // 调整tabs底部间距
  .el-tabs__header {
    margin-bottom: 10px;
  }
  .el-tabs__item.is-active,
  .el-tabs__item:not(.is-disabled):hover {
    color: $green;
    font-weight: 700;
  }
  // 消除底部分割线
  .el-tabs__nav-wrap {
    &::after {
      display: none !important;
    }
  }
}

// 调整table表单样式
.el-table th.el-table__cell {
  background-color: $liner-tgreen;
  color: rgba(0, 0, 0, 0.5);
  height: 60px;
  font-size: 16px;
}
.el-table__cell {
  text-align: center !important;
  height: 53px;
}
.el-table__header {
  .el-table__cell {
    background-color: #eee !important;
  }
}

/**
 *调整 button 样式
 */
// text button 的样式
.el-button.el-button--text {
  font-size: 14px;
  background: transparent;
  border: none;
  padding: 0 1em;
  color: $green;
  text-transform: uppercase;
  position: relative;
  transition: 0.5s ease;
}
.el-button {
  padding: 0 1rem;
}

.el-button.el-button--text::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: $green;
  transition: 0.5s ease;
}

.el-button.el-button--text:hover {
  font-weight: 700;
}

.el-button.el-button--text:hover::before {
  width: 100%;
}

.el-button.el-button--text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0;
  width: 100%;
  background-color: $green;
  transition: 0.4s ease;
  z-index: -1;
}

.el-button.el-button--text:hover::after {
  height: 2px;
  transition-delay: 0.4s;
  color: $green;
}

.el-button.el-button--primary.is-link{
  font-weight: 700;
}

// 调整 el-input 输入框样式
.el-input {
  // focus时外边框颜色
  --el-input-focus-border: #1ccba9;
  --el-input-focus-border-color: #1ccba9;
  // height: 32px;
}
.el-textarea {
  // focus时外边框颜色
  --el-input-focus-border: #1ccba9;
  --el-input-focus-border-color: #1ccba9;
  // height: 32px;
}
// 调整 el-textArea 输入框样式
.el-input {
  // focus时外边框颜色
  --el-input-focus-border: #1ccba9;
  --el-input-focus-border-color: #1ccba9;
  // height: 32px;
}

// el-dialog 弹框样式
.el-dialog {
  width: 35%;

  .el-dialog__title {
    font-size: 20px;
  }

  // 封装查看表达的el-row,el-col的样式
  .el-row {
    .el-col {
      border: 1px solid #ddd;
      padding: 10px;
      border-bottom: 0;
    }
    .row-remark {
      border-bottom: 1px solid #ddd !important;
    }
  }
  .row-col-2,
  .row-col-3 {
    .el-col {
      border-left: 0;
      &:first-child {
        border-left: 1px solid #ddd;
      }
    }
  }
  .row-footer {
    .el-col {
      border-bottom: 1px solid #ddd !important;
    }
  }
  .row-header {
    background: linear-gradient(135deg, #23bdb8 0%, #43e794 100%);
    border: none;
    color: #fff;

    font-size: 1.6rem;
  }
}

.el-dialog-25 {
  .el-dialog {
    width: 25%;
    .el-dialog__header {
      margin-right: 0;
      border-bottom: 1px solid #d3d3d3;
    }
    .el-form {
      padding-right: 30px;

      .el-date-editor {
        .el-input__wrapper {
          width: 345px;
        }
      }
    }
  }
}

// 调整form表单
.el-form-item-full {
  .el-form-item__content {
    display: grid;
  }
}

// el-select 下拉框样式
.el-select .el-input.is-focus .el-input__wrapper {
  box-shadow: 0 0 0 1px $green inset !important;
}
// el-select 下拉框样式
.el-select .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px $green inset !important;
}
.el-select-dropdown__item.selected {
  color: $green;
}

.el-select-dropdown__item {
  padding: 0 1.6rem;
}
